package com.xrz.sxm.base.utils;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

public class QuitLoopHandle extends Handler {
	public static void QuitLoop() {
		QuitLoopHandle handler = new QuitLoopHandle(Looper.getMainLooper());
		Message msg = handler.obtainMessage();
		handler.sendMessage(msg);
	}

	public QuitLoopHandle(Looper looper) {
		super(looper);
	}

	@Override
	public void handleMessage(Message msg) {
		try {
			this.getLooper().getMainLooper().quit();
		} catch (Exception e) {
		}

	}
}
